<%@page import="com.example.meal_ordering_system.entity.Menus"%>
<%@ page language="java" import="java.util.*,java.text.*" pageEncoding="utf-8"%>
<%@ page import="com.example.meal_ordering_system.service.MenusService" %>
<%@ page import="com.example.meal_ordering_system.service.impl.MenusServiceImpl" %>

<html>
<title>Menu Display</title>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta content="" name=keywords />
	<meta content="" name=description />
	<link href="css/common.css" rel="stylesheet" type="text/css" />
	<link href="css/skin.css" rel="stylesheet" type="text/css" />
</head>

<body style='background:transparent'>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td align="left" valign="top">
			<jsp:include flush="false" page="top.jsp"/>
		</td>
	</tr>
	<tr>
		<td height="50"></td>
	</tr>
	<tr>
		<td align="center" valign="center" height="450">
			<div align="center">
				<table id="table2" class="line_table" style="width:100%; margin: 0; padding: 0" cellSpacing="0" cellPadding="0">
					<%
						int id = 12;
						MenusService ms = new MenusServiceImpl();
						Menus menus = new Menus();
						menus = ms.queryById(id);
						if (menus != null) {
					%>
					<tr>
						<td class="line_table" height="25" align="right" width="20%"><span class="left_bt2">Menu Name:</span></td>
						<td class="line_table" height="25" width="70%">
							<input type="text" name="name" size="45" readonly value="<%=menus.getName()%>"></td>
					</tr>
					<tr>
						<td class="line_table" height="25" align="right" width="20%"><span class="left_bt2">Ingredients:</span></td>
						<td class="line_table" height="25" width="80%">
							<input type="text" name="burden" size="45" readonly value="<%=menus.getBurden()%>"></td>
					</tr>
					<tr>
						<td class="line_table" height="25" align="right" width="20%"><span class="left_bt2">Market Price:</span></td>
						<td height="25" width="80%">
							<input type="text" name="price" size="45" readonly value="<%=menus.getPrice()%>"></td>
					</tr>
					<tr>
						<td class="line_table" height="25" align="right" width="20%"><span class="left_bt2">Member Price:</span></td>
						<td height="25" width="80%">
							<input type="text" name="price1" size="45" readonly value="<%=menus.getPrice1()%>"></td>
					</tr>
					<tr>
						<td class="line_table" height="25" align="right" width="20%"><span class="left_bt2">Description:</span></td>
						<td class="line_table" height="25" width="80%">
							<textarea rows="12" name="brief" cols="100" readonly><%=menus.getBrief()%></textarea></td>
					</tr>
					<tr>
						<td class="line_table" height="25" align="right" width="20%"><span class="left_bt2">Dish Type:</span></td>
						<td class="line_table" height="25" width="80%">
							<input type="text" name="type" size="45" readonly value="<%=menus.getTypeid()%>">
						</td>
					</tr>
					<tr>
						<td class="line_table" align="right" width="20%">
							<span class="left_bt2">Display Image</span>:</td>
						<td class="line_table" width="80%" align="left"><img src="../<%=menus.getImgpath() %>"></td>
					</tr>
					<%
						}
					%>
					<tr>
						<td class="line_table" height="25" align="center" colspan="2">
							<a href="index.jsp" target="_self"><input type="submit" value="Back"></a>
						</td>
					</tr>
				</table>
			</div>
		</td>
	</tr>
	<tr>
		<td height="10">&nbsp;</td>
	</tr>
	<tr>
		<td height="50" align="center" valign="middle">
			<jsp:include flush="false" page="copyright.jsp"/>
		</td>
	</tr>
</table>
</body>
</html>
